import { get, put, post, del } from '@/utils/request'

const getMenus = () => { return get('/public/menus') }
const addMenu = (data) => { return post('/private/menus', data) }
const updateMenu = (data) => { return put(`/private/menus`, data) }
const deleteMenu = (id) => { return del(`/private/menus?id=${id}`) }

export default {
    getMenus,
    addMenu,
    updateMenu,
    deleteMenu
}
